package com.health.httpbean;

import android.util.Log;

import com.blankj.utilcode.util.SPStaticUtils;
import com.blankj.utilcode.util.SPUtils;

/**
 * author : xiaoxin
 * date   : 2020/12/16 20:29
 * desc   :
 * update :
 */
public class HttpNewConstant {

    //测试环境
//    public static final String defaultURl = "http://183.66.66.49:8081";//重庆九龙坡
//   public static final String defaultURl = "https://txapi.guantangyiliao.com";//本公司慢病
   public static final String defaultURl = "http://111.175.89.10:8181";//本公司慢病
    public static final String path_url = "/moon-api/";

    /** 设置保存的 随访表上传接口地址 */
    public static final String sp_url_new = "sp_url_new";

    //档案注册接口
    public static final String AndroidRegister = "/Api/PC/AndroidRegister";
    //随访表数据上次接口
    public static final String UpLoadData = "/Api/FollowUP/UpLoadData";


    /*************************** 新平台接口 start **********************************/

    /** 档案接口 接口 */
    public static final String saveOrUpdatePersonal = path_url + "api/personnel/saveOrUpdatePersonal";
    public static final String uploadFollowData = path_url + "api/doctor/follow/uploadFollowData";

    /** 体温数据 接口 */
    public static final String savePersonnelTiwen = path_url + "api/health/personneltiwen/savePersonnelTiwen";
    /** 血脂4项数据 接口 */
    public static final String saveK5BloodfatFour = path_url + "api/health/trapersonnelcholesterol/saveTraPersonnelCholesterol";
    /** 血糖数据 接口 */
    public static final String savePersonnelXuetang = path_url + "api/health/personnelxuetang/savePersonnelXuetang";
    /** 血氧数据 接口 */
    public static final String savePersonnelXueyang = path_url + "api/health/personnelxueyang/savePersonnelXueyang";
    /** 血压数据 接口 */
    public static final String savePersonnelXueya = path_url + "api/health/personnelxueya/savePersonnelXueya";
    /** 心电数据 接口 */
    public static final String savePersonnelXindian = path_url + "api/health/personnelxindian/savePersonnelXindian";
    /** 体重数据 接口 */
    public static final String saveTraPersonnelWeight = path_url + "api/health/trapersonnelweight/saveTraPersonnelWeight";
    /** 尿液数据 接口 */
    public static final String saveTraPersonnelNiaoye = path_url + "api/health/trapersonnelniaoye/saveTraPersonnelNiaoye";
    /** 百捷设备 胆固醇 接口 */
    public static final String trapersonnelcholesterol = path_url + "api/health/trapersonnelcholesterol/saveTraPersonnelCholesterol";
    /** 百捷设备 尿酸 接口 */
    public static final String saveTraPersonnelUricacid = path_url + "api/health/trapersonneluricacid/saveTraPersonnelUricacid";
    // 视力接口
    public static final String saveTraPersonnelEye = path_url + "api/healthHome/trapersonneleye/saveTraPersonnelEye";
    // XHDB
    public static final String saveK5Hemoglobin = path_url + "api/health/k5hemoglobin/saveK5Hemoglobin";
    // 中医体质辨识
    public static final String saveHbMedicineTestResult = path_url + "api/health/hbmedicinetestresult/saveHbMedicineTestResult";
    // 保持sc90接口
    public static final String saveJkpgScl90 = path_url + "api/health/jkpgscl90/saveJkpgScl90";
    /** 腰臀比 接口 */
    public static final String saveTraPersonnelWaistline = path_url + "api/healthHome/trapersonnelwaistline/saveTraPersonnelWaistline";
    // 根据绑定设备查询用户列表信息
    public static final String queryArchiveByDevice = path_url + "api/personnel/queryArchiveByDevice";
    // 根据设备号查询机构信息
    public static final String queryHospital = path_url + "api/health/hborgandevice/queryHospital";

    // 上传心电图片接口
    public static final String saveEcgFile = path_url + "fastdfs/uploadFile";

    /*************************** 家医签约新增接口 end **********************************/



     /**
     * 返回新平台 baseUrl 地址
     * @return
     */
    public static String getHttpNewBaseUrl() {
        return SPStaticUtils.getString(HttpNewConstant.sp_url_new, defaultURl);
    }

    public static String getHttpUrlUpLoadData() {
        String url = SPStaticUtils.getString(HttpNewConstant.sp_url_new, defaultURl);
        Log.e("xiaoxin", "getHttpUrlUpLoadData: " +  url + uploadFollowData);
        return url + uploadFollowData;
    }
}
